<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:output method="text" indent="yes"/>
	<xsl:template match="text()"/>
	
	
	<xsl:template match="pedido">
		Pedido no. <xsl:value-of select="@numero"/>
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="cliente">
		---------------------------------------------------
		Cliente: <xsl:value-of select ="razao_social"/>          CGC: <xsl:value-of select="cgc"/>
		---------------------------------------------------
		
		<xsl:apply-templates/>
	</xsl:template>
	
	<xsl:template match="itens_pedido">
		Itens
		---------------------------------------------------
		<xsl:apply-templates select="item[produto='caneta azul']"/>
	</xsl:template>
	
	<xsl:template match="item">
		* <xsl:value-of select="produto"/>	<xsl:text>      </xsl:text> <xsl:value-of select="quantidade"/>	<xsl:text>      </xsl:text><xsl:value-of select="preco_unit"/> 
		<xsl:apply-templates select="item[produto='caneta azul']"/>
	</xsl:template>
	
	
	
	
	

</xsl:stylesheet>